package com.example.dao;

import com.example.entity.Hiv;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

public interface HivRepository extends JpaRepository<Hiv,Long> {
    @Query(value = "select * from hiv where name like %?1%", nativeQuery = true)
    Page<Hiv> findByNameLike(String name, Pageable pageRequest);
}
